import numpy as np
import pandas as pd
#创建Series
# data = [100,90,80,70]
# s = pd.Series(data,index=['zs','ls','ww','sl'])
# print(s)

# ary = np.zeros(10) +0.2
# # ary = np.ones(10) /5
# print(ary)

# s = pd.Series(0.2,index=range(10))
# print(s)

#访问Series中的数据

s = pd.Series([100,90,80,70],
              index=['zs','ls','ww','sl'])
print(s[0:2])
#掩码
print(s[[0,1,3]])